package org.cbyyx.tc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.cbyyx.tc.model.dto.orderRequest.OrderCreateRequest;
import org.cbyyx.tc.model.dto.orderRequest.OrderQueryRequest;
import org.cbyyx.tc.model.entity.Order;
import org.cbyyx.tc.model.vo.orderResponse.OrderDetailVO;

/**
* @author Administrator
* @description 针对表【orders】的数据库操作Service
* @createDate 2025-04-21 15:41:21
*/
public interface OrderService extends IService<Order> {
    OrderDetailVO createOrder(OrderCreateRequest request);
    Boolean cancelOrder(Long orderId);
    OrderDetailVO getOrderDetail(Long orderId);
    Page<OrderDetailVO> listOrders(OrderQueryRequest request);
    Boolean payOrder(Long orderId);
    Boolean deliverOrder(Long orderId);
    Boolean completeOrder(Long orderId);
}
